package com.fanyue.modules.face.service;

import com.fanyue.core.base.BaseService;
import com.fanyue.core.request.R;
import com.fanyue.modules.face.entity.AppUserFace;
import com.fanyue.modules.face.vo.FaceVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

public interface FaceEngineService extends BaseService<AppUserFace> {

	R featureList();

	R extractFeature(String type, Long userId, MultipartFile file, String filePath);

	R singleExtractFeature(String type, File file);

	R selectFeature(Long cid, MultipartFile file);

	R compareFeature(FaceVO faceVO);

	R compareFeatureBase64(FaceVO faceVO);

	R deleteFeature(Long userId);

	R confirm(List<Long> ids);

	R getUserFaceData(Long userId);

}
